#include <gtest/gtest.h>
#include <gmock/gmock.h>

class Foo {
public:
    int get();
};

class MockFoo : public Foo {
public:
    MOCK_METHOD(int, get, ());
};

TEST(sample, get)
{
    MockFoo foo;
    EXPECT_CALL(foo, get())
        .WillOnce(testing::Return(1));
    EXPECT_EQ(1, foo.get());
}

int main()
{
    ::testing::InitGoogleTest();
    return RUN_ALL_TESTS();
}